# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=dateutils
pkgver=0.4.10
pkgrel=0
pkgdesc="Utilities for fast date-time calculations and conversion"
url="https://www.fresse.org/dateutils/"
arch="all"
license="BSD-3-Clause"
makedepends="m4 texinfo automake autoconf linux-headers"
subpackages="$pkgname-doc"
source="https://bitbucket.org/hroptatyr/dateutils/downloads/dateutils-$pkgver.tar.xz"

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var \
		--enable-static=no
	make
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="
04a9fff177596bb9bc47d3b221865bbeafeafbc708385610845a1cdcb2a7fa379e8d9363cce578836ae121dab7ee64e19f61d82e8f222250e52d23c5f43cf521  dateutils-0.4.10.tar.xz
"
